package com.hmily.spring.samples.scanner;

import com.hmily.spring.samples.scanner.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <h1>模拟扫描组件的测试控制器。</h1>
 *
 * @author hmilyylimh
 * ^_^
 * @version 0.0.1
 * ^_^
 * @date 2021-10-31
 */
@RestController
public class ScannerController {

    @Autowired
    private UserMapper userMapper;

    @RequestMapping("/user")
    public Object getUserById(String userId){
        return userMapper.getUserById(userId);
    }
}